package com.kaili.basic.service.impl;

/**
 * Created by xxx on 2019-03-07.
 */

import com.kaili.basic.mapper.WarehousingReturnProductMapper;
import com.kaili.basic.pojo.entity.WarehousingReturnProduct;
import com.kaili.basic.service.WarehousingReturnProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xxx
 * @Copyright: Copyright (c) 2017
 * @Company: 杭州凯立通信有限公司
 */
@Service
public class WarehousingReturnProductServiceImpl implements WarehousingReturnProductService {
    @Autowired
    WarehousingReturnProductMapper warehousingReturnProductMapper;

    @Override
    public int addWarehousingReturnProduct(WarehousingReturnProduct warehousingReturnProduct) {
        return warehousingReturnProductMapper.addWarehousingReturnProduct(warehousingReturnProduct);
    }

    @Override
    public int deleteWarehousingReturnProduct(WarehousingReturnProduct warehousingReturnProduct) {
        return warehousingReturnProductMapper.deleteWarehousingReturnProduct(warehousingReturnProduct);
    }

    @Override
    public List<WarehousingReturnProduct> getWarehousingReturnProductList(Long returnId) {
        return warehousingReturnProductMapper.getWarehousingReturnProductList(returnId);
    }

    @Override
    public WarehousingReturnProduct getWarehousingReturnProductById(Long id) {
        return warehousingReturnProductMapper.getWarehousingReturnProductById(id);
    }
}
